package com.test.dababy;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;

public class Othe_dababyrsInfo {

    private static class Inner_dababy {
        private static Othe_dababyrsInfo instance_dababy = new Othe_dababyrsInfo();
    }

    private Othe_dababyrsInfo(){}

    public static Othe_dababyrsInfo getInstance_dababy(){
        return Inner_dababy.instance_dababy;
    }

    public static void parse_dababy(JSONObject objJson){
        Inner_dababy.instance_dababy = new Gson().fromJson(objJson.toString(), Othe_dababyrsInfo.class);
    }

    //还款链接，获取后置空
    private String rpPath;
    //发送验证码响应参数，获取后置空
    private JSONObject sendOtpCodeJson;
    //图片上传后返回的链接，获取后置空
    private String imgPath;

    //法语区绑卡时返回的运营商
    private String channel;
    //法语区绑卡时返回的 是否需要绑定运营商Flag
    private String addBindFlag;

    //缓存的绑卡渠道
    private String frontChannel;

    public String hjerrkr5kj ="";
    public String jhhRo3 ="";
    public String hwpl3 ="";
    public String hrTYr3 ="";
    public String hrrt4Grt3tg ="";

    public String getRpPath_dababy() {
        if (TextUtils.isEmpty(rpPath)) return "";
        String result = rpPath;
        rpPath = "";
        return result;
    }

    public JSONObject getSendOtpCodeJson_dababy() {
        JSONObject result = sendOtpCodeJson;
        sendOtpCodeJson = null;
        return result;
    }

    public String getImgPath_dababy() {
        if (TextUtils.isEmpty(imgPath)) return "";
        String resulet = imgPath;
        imgPath = "";
        return resulet;
    }

    public void setRpPath_dababy(String rpPath) {
        this.rpPath = rpPath;
    }

    public void setSendOtpCodeJson_dababy(JSONObject sendOtpCodeJson) {
        this.sendOtpCodeJson = sendOtpCodeJson;
    }

    public void setImgPath_dababy(String imgPath) {
        this.imgPath = imgPath;
    }

    public void setChannel_dababy(String channel) {
        this.channel = channel;
    }

    public String getChannel_dababy() {
        if (TextUtils.isEmpty(channel)) return "";
        setHjerrkr5kj("HGwioaerj");
        return channel;
    }

    public void setAddBindFlag_dababy(String addBindFlag) {
        setHwpl3("gwioejr");
        this.addBindFlag = addBindFlag;
    }

    public boolean getAddBindFlag_dababy() {
        if (TextUtils.isEmpty(addBindFlag)) return false;
        if (addBindFlag.equalsIgnoreCase("YES")){
            setHrrt4Grt3tg("giwoe");
            addBindFlag = "NO";
            return true;
        }
        return false;
    }

    public void setFrontChannel(String frontChannel) {
        this.frontChannel = frontChannel;
    }

    public String getFrontChannel() {
        if (TextUtils.isEmpty(frontChannel)) return "Wave";
        return frontChannel;
    }

    public void setHjerrkr5kj(String hjerrkr5kj) {
        this.hjerrkr5kj = hjerrkr5kj;
    }

    public void setJhhRo3(String jhhRo3) {
        this.jhhRo3 = jhhRo3;
    }

    public void setHwpl3(String hwpl3) {
        this.hwpl3 = hwpl3;
    }

    public void setHrTYr3(String hrTYr3) {
        this.hrTYr3 = hrTYr3;
    }

    public void setHrrt4Grt3tg(String hrrt4Grt3tg) {
        this.hrrt4Grt3tg = hrrt4Grt3tg;
    }
}
